package com.iye.puretennis.domain;

/**
 * Author: Chuanbao on 2014/11/12.
 */
public class User {
    private String guid;
    private String name;

    public User() {

    }

    public User(String guid, String name) {
        this.guid = guid;
        this.name = name;
    }


    public String getGuid() {
        return guid;
    }

    public String getName() {
        return name;
    }



    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof User)) return false;

        User user = (User) o;

        return guid.equals(user.guid) && name.equals(user.name);

    }

    @Override
    public int hashCode() {
        int result = guid.hashCode();
        result = 31 * result + name.hashCode();
        return result;
    }
}
